package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class DVD here.
 * 
 * @author (Gruppe C) 
 * @version (a version number or a date)
 */
public class DVD
{
    // instance variables - replace the example below with your own
    private ArrayList<Copy> copies;
    
    private int id;
    private String title;
    private String director;
    private int year;

    /**
     * Constructor for objects of class DVD
     */
    public DVD()
    {
        copies = new ArrayList<Copy>();
    }
    
    public DVD(int id, String title, String director, int year)
    {
        // initialise instance variables
        this.id = id;
        this.title = title;
        this.director = director;
        this.year = year;
    }

    /**
     * Get DVD identification
     */
    public int getId()
    {
        return id;
    }
    /**
     * Set a new id
     */
    public void setId(int i)
    {
        i = id;
    }

    /**
     * Add a copy of this DVD 
     */
    public void addCopy(Copy copy)
    {
        copies.add(copy);
    }
    
    /**
     * Show the title of this DVD
     */
    public String getTitle()
    {
        return title;
    }
    /**
     * Set a new movie title
     */
    public void setTitle(String t)
    {
        t = title;
    }

    /**
     * Show the release year of this DVD
     */
    public int getYear()
    {
        return year;
    }
    
/**
     * Set a new release year
     */
    public void setYear(int y)
    {
        y = year;
    }

    /**
     * Show the standard rentalperiod for this DVD
     */
    public String getDirector()
    {
        return director;
    }
    /**
     * Set a new movie director
     */
    public void setDirector(String d)
    {
        d = director;
    }
}
